<?php if(!defined("HDPHP_PATH"))exit;C("SHOW_NOTICE",FALSE);?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<title></title>
	<!-- basic styles -->
	<script type='text/javascript' src='http://localhost/qm_shop/hdphp/hdphp/../hdjs/jquery-1.8.2.min.js'></script>
<link href='http://localhost/qm_shop/hdphp/hdphp/../hdjs/css/hdjs.css' rel='stylesheet' media='screen'>
<script src='http://localhost/qm_shop/hdphp/hdphp/../hdjs/js/hdjs.js'></script>
<script src='http://localhost/qm_shop/hdphp/hdphp/../hdjs/js/slide.js'></script>
<script src='http://localhost/qm_shop/hdphp/hdphp/../hdjs/org/cal/lhgcalendar.min.js'></script>
<script type='text/javascript'>
		HOST = 'http://localhost';
		ROOT = 'http://localhost/qm_shop';
		WEB = 'http://localhost/qm_shop/index.php';
		URL = 'http://localhost/qm_shop/index.php/Admin/Order/show_order/oid/118';
		HDPHP = 'http://localhost/qm_shop/hdphp/hdphp';
		HDPHPDATA = 'http://localhost/qm_shop/hdphp/hdphp/Data';
		HDPHPTPL = 'http://localhost/qm_shop/hdphp/hdphp/Lib/Tpl';
		HDPHPEXTEND = 'http://localhost/qm_shop/hdphp/hdphp/Extend';
		APP = 'http://localhost/qm_shop/index.php/Admin';
		CONTROL = 'http://localhost/qm_shop/index.php/Admin/Order';
		METH = 'http://localhost/qm_shop/index.php/Admin/Order/show_order';
		GROUP = 'http://localhost/qm_shop/./Qmshop';
		TPL = 'http://localhost/qm_shop/./Qmshop/App/Admin/Tpl';
		CONTROLTPL = 'http://localhost/qm_shop/./Qmshop/App/Admin/Tpl/Order';
		STATIC = 'http://localhost/qm_shop/Static';
		PUBLIC = 'http://localhost/qm_shop/./Qmshop/App/Admin/Tpl/Public';
		HISTORY = 'http://localhost/qm_shop/index.php/Admin/Order/index';
		HTTPREFERER = 'http://localhost/qm_shop/index.php/Admin/Order/index';
</script>
	<link href="http://localhost/qm_shop/./Qmshop/App/Admin/Tpl/Public/css/common.css" rel="stylesheet" />
	<link href="http://localhost/qm_shop/./Qmshop/App/Admin/Tpl/Public/css/bootstrap.min.css" rel="stylesheet" />
	<link href="http://localhost/qm_shop/./Qmshop/App/Admin/Tpl/Public/css/bootstrap-responsive.min.css" rel="stylesheet" />
	<link rel="stylesheet" href="http://localhost/qm_shop/./Qmshop/App/Admin/Tpl/Public/css/font-awesome.min.css" />
	<!--[if IE 7]>
	  <link rel="stylesheet" href="http://localhost/qm_shop/./Qmshop/App/Admin/Tpl/Public/css/font-awesome-ie7.min.css" />
	<![endif]-->
	<!-- page specific plugin styles -->
	
	<!-- ace styles -->
	<link rel="stylesheet" href="http://localhost/qm_shop/./Qmshop/App/Admin/Tpl/Public/css/ace.min.css" />
	<link rel="stylesheet" href="http://localhost/qm_shop/./Qmshop/App/Admin/Tpl/Public/css/ace-responsive.min.css" />
	<link rel="stylesheet" href="http://localhost/qm_shop/./Qmshop/App/Admin/Tpl/Public/css/ace-skins.min.css" />
	<!--[if lt IE 9]>
	  <link rel="stylesheet" href="http://localhost/qm_shop/./Qmshop/App/Admin/Tpl/Public/css/ace-ie.min.css" />
	<![endif]-->
</head>
<body>
	<div class="container-fluid" id="main-container">
		<div class="table-header">
			订单管理 | <a style="font-size:14px;" href="<?php echo U('Order/index');?>">订单列表</a> > <a style="font-size:14px;" href="">查看订单</a><span class="fr" style="margin-right:50px;font-size:14px;">订单ID：<?php echo $order['oid'];?>&nbsp&nbsp&nbsp&nbsp&nbsp总价：[<span style="color:red;font-size:14px;">￥<?php echo $order['ototal'];?></span>]</span>
		</div>
		<form action="" method="post">
			<div class="container-fluid" style="padding:0px;">
				<div class="row-fluid">
					<div class="span12">
						<table class="table table-bordered table-hover">
							<tr>
								<td  width="100" style="vertical-align: middle;">
									购货人信息
								</td>
								<td>
									<p><span>UID：</span><?php echo $order['qm_user_uid'];?></p>
									<p><span>电话：</span><?php echo $order['ophone_buyer'];?></p>
								</td>
							</tr>
							<tr class="success">
								<td style="vertical-align: middle;">
									收货人信息
								</td>
								<td>
									<p><span>姓名：</span><?php echo $order['oconsignee'];?></p>
									<p><span>联系电话：</span><?php echo $order['ophone_cnee'];?></p>
									<p><span>邮政编码：</span><?php echo $order['ozipcode'];?></p>
									<p><span>收货地址：</span><?php echo $order['oaddress'];?></p>
								</td>
							</tr>
							<tr class="error">
								<td style="vertical-align: middle;">
									商品信息
								</td>
								<td>
									<table class="table table-bordered goods_inf">
										<thead>
											<tr>
												<td style="width:280px;">商品名称</td>
												<td class="hidden-phone" style="width:60px;text-align: center;"> 购买数量</td>
												<td class="hidden-phone" style="width:60px;text-align: center;"> 单价(单位:元)</td>
												<td class="hidden-phone" style="width:60px;text-align: center;"> 小计(单位:元)</td>
												<td class="hidden-phone" style="width:100px;text-align: center;"> 规格(尺码,颜色)</td>
												<td class="hidden-phone" style="width:60px;text-align: center;"> 所属货品ID</td>
												<td class="hidden-phone" style="width:60px;text-align: center;"> 所属商品ID</td>
												<td class="hidden-phone" style="width:60px;text-align: center;"> 所属订单ID</td>
											</tr>
										</thead>							
										<tbody>
											<?php if(is_array($list)):?><?php  foreach($list as $value){ ?>
												<tr>
													<td style="width:280px;"><?php echo $value['name'];?></td>
													<td class="hidden-phone" style="width:60px;text-align: center;text-align: center;"><?php echo $value['lnumber'];?></td>
													<td class="hidden-phone" style="width:60px;text-align: center;"><?php echo $value['lprice'];?></td>
													<td class="hidden-phone" style="width:60px;text-align: center;"><?php echo $value['lmoney'];?></td>
													<td class="hidden-phone" style="width:100px;text-align: center;"><?php echo $value['combine'];?></td>
													<td class="hidden-phone" style="width:60px;text-align: center;"><?php echo $value['qm_combine_bid'];?></td>
													<td class="hidden-phone" style="width:60px;text-align: center;"><?php echo $value['qm_goods_gid'];?></td>
													<td class="hidden-phone" style="width:60px;text-align: center;"><?php echo $value['qm_order_oid'];?></td>
												</tr>
											<?php }?><?php endif;?>
										</tbody>
									</table>
									<script type="text/javascript">
										$('.goods_inf,.goods_inf tr').css('background', 'none');
									</script>
								</td>
							</tr>
							<tr class="warning">
								<td colspan="2">
									<input type="hidden" name='oid' value='<?php echo $order['oid'];?>'/>
									<?php  switch($order['ostate']):?>
<?php  case 1:{?> <button class="btn btn-small" disabled="disabled"><i class="icon-credit-card"></i> 等待客户付款</button><?php break;}?><?php  case 2:{?> <input type="submit" class="btn btn-primary" value="立即发货" /> <?php break;}?><?php  case 3:{?> <button class="btn btn-small" disabled="disabled"><i class="icon-fighter-jet"></i> 等待客户收货</button> <?php break;}?><?php  case 4:{?> <button class="btn btn-small" disabled="disabled"><i class="icon-comment"></i> 等待客户评价</button> <?php break;}?>
									<?php endswitch;?>
								</td>
							</tr>
						</table>
					</div>
				</div>
			</div>
		</form>
	</div><!-- #main-content -->
</body>
</html>